import Vue from 'vue'
import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'
import '@/styles/variables.scss'
import store from './store'

import router from './router'
import '@/directive' // 按钮显示隐藏
import '@/icons' // icon
import './permission.js'
import componentPlugin from '@/components'
// 组件Pagetools全局引入
// import Pagetools from '@/components/PageTools'
// Vue.component(Pagetools.name, Pagetools)
// 在vue上注册插件
Vue.use(componentPlugin)
Vue.use(ElementUI)
Vue.config.productionTip = false

// vue实例化
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
